package com.proxy;

import java.util.ArrayList;
import java.util.List;

/**
 * User: yuanjianpeng
 * Date: 2019/1/12
 * Project: webServiceServerTest
 * Version: 1.0
 * Description:
 */
public class UserQueryService {

    /**
     * 模拟由用户名查询用户服务
     * @param userName
     * @return
     */
    public Result<List<UserDao>> userQueryByUserName(String userName){
        Result result = new Result();
        List<UserDao> userDaos = new ArrayList<>();
        UserDao userDao = new UserDao();
        userDao.setUserName(userName);
        userDao.setPassWord(userName+"123456");
        userDaos.add(userDao);
        result.setResult(userDaos);
        return result;
    }
}
